package com.zjcode.cdcer.service;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import com.zjcode.cdcer.service.fallback.TaskAssignmentServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author ZQM
 * @date 2023/9/19 11:17
 */
@FeignClient(value = "zjcode-chronic-disease-cancer-server", fallback = TaskAssignmentServiceFallback.class)
public interface TaskAssignmentService {

    @PostMapping("/cdcerserver/v1/task/add")
    JsonObj add(@RequestBody PageData pageData);

    @GetMapping("/cdcerserver/v1/task/del")
    JsonObj del(@RequestParam String id);

    @PostMapping("/cdcerserver/v1/task/edit")
    JsonObj edit(@RequestBody PageData pageData);

    @GetMapping("/cdcerserver/v1/task/selById")
    JsonObj selById(@RequestParam String id);

    @PostMapping("/cdcerserver/v1/task/selList")
    JsonObj selList(@RequestBody PageData pageData);

    @GetMapping("/cdcerserver/v1/task/changeStatus")
    JsonObj changeStatus(@RequestParam String id,@RequestParam String status);

    @PostMapping("/cdcerserver/v1/task/queryAllExportData")
    JsonObj queryAllExportDataBy(@RequestBody PageData pageData);
}
